//created by: Justina Lee

Ext.define("MajorProjectSenchaTouch.view.MainNavView", {
    extend: 'Ext.navigation.View',
    xtype: 'mainNavView',
    requires:[
        'MajorProjectSenchaTouch.view.Main'
    ],
    config: {        
        style: 'background-color: #343433',
        navigationBar: {
            items: [
            {
                ui: 'back',
                text: 'Back',
                hidden: true,
                id: 'mainBackButton'
            },    
			// comment out by ch
			// {                        
                // iconCls:'spinMe',
                // iconMask:true,
                // align: 'right',
                // action: 'spinMe'
            // },
            {                        
                iconCls:'home',
                iconMask:true,
                align: 'right',
                action: 'goHome'
            },
            {
                iconCls: 'bookmark2',
                iconMask:true,
                id: 'bookMarkedBtn',
                align:'right',
                action: 'goBookMarked',
                listeners:{
                    initialize: function(btn){
                        this.fireEvent('initBtn', this, btn);
                    }
                }
            }
            ]
        },

        items: [
        {
            title: 'Temasek Polytechnic Library',
            xtype:'mainPage'
        }
        ]
    }
});